import request from '@/utils/request'

// 查询付款单列表
export function listAdvicePayment(query) {
  return request({
    url: '/payfee/advicePayment/list',
    method: 'get',
    params: query
  })
}

// 查询付款单详细
export function getAdvicePayment(id) {
  return request({
    url: '/payfee/advicePayment/' + id,
    method: 'get'
  })
}

// 新增付款单
export function addAdvicePayment(data) {
  return request({
    url: '/payfee/advicePayment',
    method: 'post',
    data: data
  })
}

// 修改付款单
export function updateAdvicePayment(data) {
  return request({
    url: '/payfee/advicePayment',
    method: 'put',
    data: data
  })
}

// 删除付款单
export function delAdvicePayment(id) {
  return request({
    url: '/payfee/advicePayment/' + id,
    method: 'delete'
  })
}

// 导出付款单
export function exportAdvicePayment(query) {
  return request({
    url: '/payfee/advicePayment/export',
    method: 'get',
    params: query
  })
}

// 查询已收款列表
export function getTooReceiptlist(query) {
  return request({
    url: '/payfee/advicePayment/tooReceiptlist',
    method: 'get',
    params: query
  })
}
